home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 457 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: cypher.3do.com!user
  2. From: tsw@3do.com (Tom Watson)
  3. Newsgroups: comp.sys.m68k
  4. Subject: Re: which family members support extb.l
  5. Date: Fri, 22 Mar 1996 15:41:38 -0800
  6. Organization: The 3DO Corporation
  7. Distribution: world
  8. Message-ID: <tsw-2203961541380001@cypher.3do.com>
  9. References: <4is33m$75e@michp1.redstone.army.mil>
  10. NNTP-Posting-Host: cypher.3do.com
  11.  
  12. In article <4is33m$75e@michp1.redstone.army.mil>,
  13. joel@merlin.gcs.redstone.army.mil wrote:
  14.  
  15. > From the 68302 docs, I cannot tell whether or not the ext byte to long 
  16. (extb.l) instruction is supported.  The ext instruction is supported but
  17. the general instruction manual says this is 
  18. > only on the 020 up and cpu32.   
  19. > Confusingly, the code in question was submitted by a user who should
  20. have run this on a 302.  So I think the 302 supports this instruction. but
  21. cannot confirm this from the manual.
  22. > Even more confusingly, GNU binutils 2.5.2 accepted this instruction for
  23. the 68302 and the newer 2.6 does not.  All I think this indicates is that
  24. someone read the manual closely between the two releases. :)
  25. > The code in question is a small subroutine in RTEMS which provides an
  26. alternate implementation of the bfffo instruction for m68k family members
  27. without it.  So it is important that this code actually work on all
  28. members of the family without the bfffo.  
  29. > Please please pretty please could someone definitively answer which m68k
  30. family members really have this instruction.
  31.  
  32. The only machines that don't have an extb.l are the 68000, 68008, 68010, and the
  33. ones that use the instruction set (68001, HC versions, ASICs).
  34.  
  35. The functionality can be done with two instructions:
  36. ext.w     (extend byte to word)
  37. ext.l     (extend word to long)
  38.  
  39. If I were trying anything, I just use the instruction, and see if it traps!
  40. It should be a simple test.
  41.  
  42. -- 
  43. Tom Watson
  44. tsw@3do.com         (Home: tsw@johana.com)
  45.